
////////// 全部使用 16进制 直接判断 就OK
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200); // Ignored by Maple. But needed by boards using hardware serial via a USB to Serial adaptor
  pinMode(PC13, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  int responsedata = Serial.read();
  if (responsedata == 0x02) { 
      digitalWrite(PC13, LOW);
    Serial.write(responsedata);
    Serial.print(":on ");
    // 开灯 至于高位
  
  }
  if (responsedata == 0x01) {
      digitalWrite(PC13, HIGH);
    Serial.write(responsedata);
    Serial.print(":off ");
  }

  
  delay(100);
}
